import { log } from 'console';
import mock from 'mockjs';

const data = mock.mock({
    "list|5":[{
        "id|5": 1,
        "name": "@cname",
        "name|1": 1,
        "age|18-60": 1,
        "age|20":1,
        "salary|1000-10000.1-3": 0,
        "salary|4000-6000.2": 0,
        "status|1": true,
        "status1|2-4": false,
        "order|2":{id:1,name:"哈喽",price:56},
        "order|1-3":{id:1,name:"哈喽",price:56},
        idCard:/\{15}|d{18}/,
    }
    ]
})
console.log(JSON.stringify(data,null,2));